/** When your routing table is too long, you can split it into small modules **/

import Layout from '../../layout'

const approvalsRouter = {
  path: '/approvals',
  component: Layout,
  redirect: '/approvals/manage',
  name: 'Approvals',
  alwaysShow: true,
  meta: {
    title: '审批管理',
    icon: 'spgl',
    roles: ['superSysOpsAdmin', 'entAdmin', 'formalEmployee']
  },
  children: [
    {
      path: 'initiateProject',
      component: () => import('@/pages/enterprise/views/approvalsMange/InitiateProject.vue'),
      name: 'InitiateProject',
      meta: { title: '项目发起审批', roles: ['superSysOpsAdmin', 'entAdmin', 'formalEmployee'], noCache: true }
    },
    {
      path: 'hotWorkPlan',
      component: () => import('@/pages/enterprise/views/approvalsMange/HotWorkPlan.vue'),
      name: 'HotWorkPlan',
      meta: { title: '方案审批', roles: ['superSysOpsAdmin', 'entAdmin', 'formalEmployee'], noCache: true }
    },
    {
      path: 'hotTicket',
      component: () => import('@/pages/enterprise/views/approvalsMange/HotTicket.vue'),
      name: 'hotTicket',
      meta: { title: '动火票审批', roles: ['superSysOpsAdmin', 'entAdmin', 'formalEmployee'], noCache: true }
    }
  ]
}
export default approvalsRouter
